package com.wave.system.domain.bo;

import com.wave.common.core.validate.AddGroup;
import com.wave.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.wave.common.core.domain.BaseEntity;

/**
 * NG记录业务对象 sys_ng_record
 *
 * @author wave
 * @date 2024-10-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysNgRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 任务类型 0-工装板任务, 1-工装架任务
     */
    @NotNull(message = "任务类型 0-工装板任务, 1-工装架任务不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer taskType;

    /**
     * 产品SN/工装架SN
     */
    @NotBlank(message = "产品SN/工装架SN不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sn;

    /**
     * NG原因
     */
    @NotBlank(message = "NG原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ngReason;


}
